package cn.miui.mall.service.impl;

import cn.miui.mall.dao.Detailsdao;
import cn.miui.mall.pojo.product_details;
import cn.miui.mall.service.Detailsservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class Detailsserviceimpl implements Detailsservice {

    @Autowired
    private Detailsdao detailsdao;
    @Override
    public List<product_details> findAll() {
        return detailsdao.findAll();
    }
    @Override
    public List<product_details> findbytype(Integer typeid) {
        return detailsdao.findByTypeid(typeid);
    }
    public product_details findbyid(Integer typeid){
         return detailsdao.findBygoodsID(typeid);
    };
}
